package com.hsgene.order.service.api;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.goods.dto.GoodsMallDto;
import com.hsgene.goods.dto.GoodsOriginDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 原始商品信息相关接口
 *
 * @author wangbing
 * @version 1.0, 2018/7/25
 */
@Deprecated
@FeignClient(name = "ms-mod-goods", path = "/goods/snapshoot")
public interface GoodsSnapshootService {

    /**
     * 查询商城商品快照信息
     *
     * @param snapshootId 快照id
     * @return 商城商品快照信息
     */
    @GetMapping("mall")
    ApiResult<GoodsMallDto> findGoodsMall(@RequestParam("snapshootId") String snapshootId);

    /**
     * 查询供应商商品快照信息
     *
     * @param snapshootId 快照id
     * @return 供应商商品快照信息
     */
    @GetMapping("origin")
    ApiResult<GoodsOriginDto> findGoodsOrigin(@RequestParam("snapshootId") String snapshootId);
}
